import 'package:flutter/material.dart';
import '../../widget/swiper.dart';

class PageViewSwiper extends StatefulWidget {
  const PageViewSwiper({super.key});

  @override
  State<PageViewSwiper> createState() => _PageViewSwiperState();
}

class _PageViewSwiperState extends State<PageViewSwiper> {
  List<String> list=[];
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    list=[
      'https://picsum.photos/300/300?random=1',
      'https://picsum.photos/300/300?random=2',
      'https://picsum.photos/300/300?random=3',
      'https://picsum.photos/300/300?random=4',
      'https://picsum.photos/300/300?random=5',
    ];
  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('PageViewSwiper'),
      ),
      body: ListView(
        children: [
          Swiper(
            list: list,
            height: 300,
          )
        ],
      ),
    );
  }
}
